﻿using System;
using System.Collections.Generic;
using System.Text;

using Nop.Services.Logging;

namespace Nop.Web.Services.Logging
{
    public class SafeLogger
    {
        private readonly ILogger _logger;

        public SafeLogger(ILogger logger)
        {
            _logger = logger;
        } 

        public void Error(string message, Exception exception = null)
        {
            MX.Core.Log.Logger.Default.Error(exception, message);
        }


        public void Information(string message)
        {
            MX.Core.Log.Logger.Default.Info(message);
        } 

        public void Warning(string message)
        {
            MX.Core.Log.Logger.Default.Warn(message);
        }



    }
}
